package com.example.icongyou.bean;


import java.math.BigDecimal;
import java.time.LocalDateTime;

public class Assignment {
    private Long id;
    private Long courseId;
    private String description;
    private BigDecimal totalScore;
    private LocalDateTime deadline;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // 构造方法
    public Assignment() {}

    public Assignment(Long courseId, String description, BigDecimal totalScore, LocalDateTime deadline) {
        this.courseId = courseId;
        this.description = description;
        this.totalScore = totalScore;
        this.deadline = deadline;
    }

    // Getter和Setter方法
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public Long getCourseId() { return courseId; }
    public void setCourseId(Long courseId) { this.courseId = courseId; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }

    public BigDecimal getTotalScore() { return totalScore; }
    public void setTotalScore(BigDecimal totalScore) { this.totalScore = totalScore; }

    public LocalDateTime getDeadline() { return deadline; }
    public void setDeadline(LocalDateTime deadline) { this.deadline = deadline; }

    public LocalDateTime getCreatedAt() { return createdAt; }
    public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }

    public LocalDateTime getUpdatedAt() { return updatedAt; }
    public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }

    @Override
    public String toString() {
        return "Assignment{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", description='" + description + '\'' +
                ", totalScore=" + totalScore +
                ", deadline=" + deadline +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}